package com.rpframework.website.device.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.rpframework.core.BaseService;
import com.rpframework.utils.Pager;
import com.rpframework.website.device.dao.IAddressDao;
import com.rpframework.website.device.domain.Address;

@Service
public class AddressService extends BaseService{
	public @Resource IAddressDao iDao;
	
	public Pager<Address> getPager(Pager<Address> pager) {
		long startTime = System.currentTimeMillis();
		List<Address> itemList = iDao.doPager(this.packageMyBatisParam(pager));
		pager.setItemList(itemList);
		pager.setCostTime(System.currentTimeMillis()-startTime);
		return pager;
	}

}
